package com.itheima.controller;

import com.itheima.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

@Controller
public class UserController {

//    @Autowired
//    @Qualifier(value = "userServiceImplAnother")
    @Resource(name = "userServiceImpl")
    private UserService userService;

    public String getName() {
        return userService.getName();
    }

}
